import request from '@/utils/request'

export function register (data) {
  return request({
    url: '/h5/user/register',
    method: 'post',
    data
  })
  // axios() 返回结果是啥? promise 对象
}

export function login (data) {
  return request({
    url: '/h5/user/login',
    method: 'post',
    data
  })
}

export function getUserInfo (data) {
  return request({
    url: '/h5/user/currentUser'
  })
}
